package com.dream.service;

import com.dream.dao.GoodsSearchMapper;
import com.dream.model.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class SearchService {
    @Autowired
    GoodsSearchMapper goodsSearchMapper;

    public List<Goods> serchResult() {
       List<Goods> list= goodsSearchMapper.nullSearch();
       if (list==null){
        return new ArrayList();
       }
        return  list;
    }
}
